const Hapi = require('hapi');
const config = require('./config');
require('env2')('./.env')
// 新建服务
var server = new Hapi.Server();

let connectionOptions = {
    port: config.port,
    host: config.host
};

server.connection(connectionOptions);

// 将需要的服务器导出到其他地方.
module.exports = server;
